#include <QtGui/QApplication>
#include <QFont>
#include <QThread>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
    //QApplication::setFont(QFont(QObject::tr("Song"), 10, QFont::Normal));
    QApplication a(argc, argv);

    if (!QSystemTrayIcon::isSystemTrayAvailable()) {
         QMessageBox::critical(0, QObject::tr("Systray"),
                               QObject::tr("I couldn't detect any system tray "
                                           "on this system."));
         return 1;
     }



    MainWindow w;
    w.show();
    return a.exec();
}
